<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3.1"/>
<title>P2 Project - GanttMaker: Client/MainWindow.xaml.cs Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="client.ico"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">P2 Project - GanttMaker
   &#160;<span id="projectnumber">1.1.0.0</span>
   </div>
   <div id="projectbrief">By student group SW2A311, Aalborg University</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_client_2_main_window_8xaml_8cs_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Properties</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Events</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">MainWindow.xaml.cs</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_client_2_main_window_8xaml_8cs.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;﻿using SW2A311_Lib;</div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="keyword">using</span> System;</div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="keyword">using</span> System.Net;</div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="keyword">using</span> System.Threading;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="keyword">using</span> System.Windows;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">using</span> System.Windows.Controls;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">using</span> System.Windows.Input;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="keyword">namespace </span>Client</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;{</div>
<div class="line"><a name="l00017"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html">   17</a></span>&#160;    <span class="keyword">public</span> <span class="keyword">partial class </span><a class="code" href="class_client_1_1_main_window.html" title="Klassen som håndterer vores WPF applikation. ">MainWindow</a> : Window</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    {</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">        #region Instansvariabler</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7">   23</a></span>&#160;        <span class="keyword">internal</span> <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a> <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>;</div>
<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38">   27</a></span>&#160;        <span class="keyword">private</span> Thread <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>;</div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0">   31</a></span>&#160;        <span class="keyword">private</span> <a class="code" href="class_client_1_1_network.html" title="Håndtere en forbinelse til en server. ">Network</a> <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>;</div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">   32</a></span>&#160;        <span class="keyword">private</span> <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a> <a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1">   37</a></span>&#160;        <span class="keyword">private</span> <a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html" title="Laves til en singleton, så vi altid kun har én database. ">ProjectCollection</a> <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a> = <a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html" title="Laves til en singleton, så vi altid kun har én database. ">ProjectCollection</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a18f7cdac958922dda5bcbf80351285e5">Instance</a>;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ac1beace0121bd43a5b69948d4d04b75b">   42</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_client_1_1_main_window.html#a225d3e6f329ab8340f27b5d63300610c" title="En delegate til at håndtere vores chatbeskeder. ">HandleChatMessage</a> <a class="code" href="class_client_1_1_main_window.html#ac1beace0121bd43a5b69948d4d04b75b" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateChatMessage</a>;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a54666c6a2193129c81e03f9fe2e6c568">   46</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_client_1_1_main_window.html#ac14a94233406d19ce1b46627c9a086b9" title="En delegate til at håndtere vores projekter. ">HandleProjectData</a> <a class="code" href="class_client_1_1_main_window.html#a54666c6a2193129c81e03f9fe2e6c568" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateProjectData</a>;</div>
<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a66f3e6e10c451e35ba67240d7a8f9475">   50</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <a class="code" href="class_client_1_1_main_window.html#a73c581f05ec7ae398805bb2772a12547" title="BAAAK? ">ConnectStatus</a> <a class="code" href="class_client_1_1_main_window.html#a66f3e6e10c451e35ba67240d7a8f9475" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateConnectStatus</a>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="preprocessor">        #region Constructors</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ae7c58513aeb07a9645724b1215a8c4c7">   60</a></span>&#160;        <span class="keyword">public</span> <a class="code" href="class_client_1_1_main_window.html#ae7c58513aeb07a9645724b1215a8c4c7" title="Constructor til til vores GUI . ">MainWindow</a>()</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a13154f295003703f3da565f38915a536" title="InitializeComponent ">InitializeComponent</a>();</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">        #region Eventhandlers</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;        <span class="keyword">public</span> delegate <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a225d3e6f329ab8340f27b5d63300610c" title="En delegate til at håndtere vores chatbeskeder. ">HandleChatMessage</a>(<span class="keywordtype">object</span> Message);</div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a14000dd7082c7f9d73392b1af88f9407">   76</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a14000dd7082c7f9d73392b1af88f9407" title="Sørger for at placere chatbeskeden i vores chatbox. ">AppendChatMessageToTextbox</a>(<span class="keywordtype">object</span> Message)</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;        {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;            <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>.ChatMessageArgs ChatMessage = (<a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>.ChatMessageArgs)Message;</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9b3b6d5f31226abb5cf656709c18dc53">ChatTextBox</a>.AppendText(ChatMessage.ChatMessage);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9b3b6d5f31226abb5cf656709c18dc53">ChatTextBox</a>.AppendText(<span class="stringliteral">&quot;\n&quot;</span>);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;        }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <span class="keyword">public</span> delegate <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ac14a94233406d19ce1b46627c9a086b9" title="En delegate til at håndtere vores projekter. ">HandleProjectData</a>(<span class="keywordtype">object</span> Message);</div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a405bbb4b2d515bb9ca36b921afd2232f">   91</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a405bbb4b2d515bb9ca36b921afd2232f" title="Sørger for at et nyt projekt fra serveren bliver tilføjet til instansen af ProjectCollection. ">AddProjectDataToList</a>(<span class="keywordtype">object</span> Message)</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>.ProjectArgs projectData = (<a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>.ProjectArgs)Message;</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a583f601d2ea137c0dea0037c34d15948" title="Laver et nyt projekt fra GUI&#39;en. ">CreateProject</a>(projectData.Project);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">        #region Chat</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7df227273de5164350ef5255aa3e791f">  105</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a7df227273de5164350ef5255aa3e791f" title="Event der køres når ChatMessageTextBox får fokus fra brugeren. ">ChatMessageTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        {</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>, <span class="stringliteral">&quot;Enter a chatmessage&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#ab5ea6b1b3621a921c9f079719907cb0e">SendChatMessageButton</a>);</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        }</div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a037152bf03539516cfd278789004b101">  114</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a037152bf03539516cfd278789004b101" title="Event der køres når ChatMessageTextBox mister fokus fra brugeren. ">ChatMessageTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        {</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>, <span class="stringliteral">&quot;Enter a chatmessage&quot;</span>);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        }</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a317642f58ba5b97158df215afb714705">  127</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a317642f58ba5b97158df215afb714705" title="Event der køres når der klikkes på SendChatMessageButton. ">SendChatMessageButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        {</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            <span class="keywordtype">string</span> defaultString = <span class="stringliteral">&quot;Enter a chatmessage&quot;</span>;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>.Text.Equals(defaultString) &amp;&amp; !<a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>.Text.Equals(<span class="stringliteral">&quot;&quot;</span>))</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            {</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a9b3b6d5f31226abb5cf656709c18dc53">ChatTextBox</a>.Text += String.Format(<span class="stringliteral">&quot;Me: {0}\n&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>.Text);</div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_chat_message_encapsulation.html" title="Indkapslings-klasse der har en string til en chat besked og en string med navnet på den bruger der se...">ChatMessageEncapsulation</a> chatMsg = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_chat_message_encapsulation.html" title="Indkapslings-klasse der har en string til en chat besked og en string med navnet på den bruger der se...">ChatMessageEncapsulation</a>(<a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a>.<a class="code" href="class_s_w2_a311___lib_1_1_user.html#a618a2f56f64b6402acdba613d185868d">Username</a>);</div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;                chatMsg.<a class="code" href="class_s_w2_a311___lib_1_1_chat_message_encapsulation.html#aee6f5d189f3303115ef15410bb3709e5">ChatMessageContent</a> = <a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>.Text;</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(chatMsg);</div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;            }</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aa68ce5bd1e5f18366741ff4a62e9620c">ChatMessageTextBox</a>.Clear();</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        }</div>
<div class="line"><a name="l00147"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a3bc2538cb343a312b7ba53ddec24fba4">  147</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a3bc2538cb343a312b7ba53ddec24fba4" title="Event der køres når teksten i ChatTextBox ændres. ">ChatTextBox_TextChanged</a>(<span class="keywordtype">object</span> sender, TextChangedEventArgs e)</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        {</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9b3b6d5f31226abb5cf656709c18dc53">ChatTextBox</a>.ScrollToEnd();</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        }</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="preprocessor">        #region Global actions</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div>
<div class="line"><a name="l00165"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a1d8c08c106eab860a6ffb84150636fb0">  165</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a1d8c08c106eab860a6ffb84150636fb0" title="Laver en opgave til et valgt projekt. ">CreateTask</a>(<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd, <span class="keywordtype">string</span> taskName, <span class="keywordtype">string</span> taskDescription, DateTime taskStart, DateTime taskEnd)</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;        {</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;            <span class="keywordflow">try</span></div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;            {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_task.html" title="Task-strukturen, der laver opgave elementer til de enkelte projekter. ">Task</a> task = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_task.html" title="Task-strukturen, der laver opgave elementer til de enkelte projekter. ">Task</a>(taskEnd, taskStart, taskName, taskDescription);</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a2e9c9d62636550a34c44f4b1b9c73420" title="Finder projektet i databasen og tilføjer Task til det. ">AddTaskToProject</a>(pd, task);</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(<a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a080aee3919fb171cd65c4951ebd84999" title="Finder project&#39;et og returnerer det. ">FindProjectByName</a>(pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a3a7ab00c925cf0f33ca55f65adb7d2e0">ProjectName</a>));</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;            }</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;            <span class="keywordflow">catch</span> (NullReferenceException)</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;            {</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please select a project first!&quot;</span>, <span class="stringliteral">&quot;Create task&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;            }</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;            <span class="keywordflow">catch</span> (ArgumentOutOfRangeException)</div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;            {</div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please enter dates within project period!&quot;</span>, <span class="stringliteral">&quot;Create task&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;            }</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;            <span class="keywordflow">finally</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;            {</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af6d6bb862a48c481f2e03b3e2413c2ad" title="Metode der Opdaterer tasklisten for det valgte projekt. ">RefreshTaskList</a>();</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;            }</div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;        }</div>
<div class="line"><a name="l00196"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a583f601d2ea137c0dea0037c34d15948">  196</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a583f601d2ea137c0dea0037c34d15948" title="Laver et nyt projekt fra GUI&#39;en. ">CreateProject</a>(<span class="keywordtype">string</span> projectName, DateTime projectStart, DateTime projectEnd)</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        {</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            <span class="keywordflow">try</span></div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;            {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> tempProject = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>(projectName, projectStart, projectEnd, <a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a>.<a class="code" href="class_s_w2_a311___lib_1_1_user.html#a618a2f56f64b6402acdba613d185868d">Username</a>);</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a0677c65be53503572ba4a16f0195b7ca" title="Add Project metode med minimalt input. ">Add</a>(tempProject);</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedIndex = <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a15ba21ecb4f07eb8ace375610e0d2a60" title="Finder index til specifikt project og returnerer det. ">IndexOf</a>(tempProject);</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(tempProject);</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;            }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            <span class="keywordflow">catch</span> (ArgumentOutOfRangeException)</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            {</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please validate the input!&quot;</span>, <span class="stringliteral">&quot;Create Project&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            }</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <span class="keywordflow">finally</span></div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            {</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            }</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        }</div>
<div class="line"><a name="l00223"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a3a097ddeaf4e7790b689b0559cae20bf">  223</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a583f601d2ea137c0dea0037c34d15948" title="Laver et nyt projekt fra GUI&#39;en. ">CreateProject</a>(<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd)</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            <span class="comment">//Blir kaldt når server sender nyt projekt</span></div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            <span class="keywordflow">try</span></div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;            {</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a0677c65be53503572ba4a16f0195b7ca" title="Add Project metode med minimalt input. ">Add</a>(pd);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;            }</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;            <span class="keywordflow">catch</span> (ArgumentException)</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please validate the input!&quot;</span>, <span class="stringliteral">&quot;Create Project&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;            }</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;            <span class="keywordflow">finally</span></div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;            {</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;            }</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        }</div>
<div class="line"><a name="l00248"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a3941a36669e3aec0a1d570c896d08275">  248</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a3941a36669e3aec0a1d570c896d08275" title="Opretter en ny bruger ">CreateUser</a>(<span class="keywordtype">string</span> userName, <span class="keywordtype">string</span> passWord)</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        {</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;            <span class="keywordflow">try</span></div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;            {</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a> userToCreate = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a>(<a class="code" href="class_client_1_1_main_window.html#aefec60f2c2087796f9b99a513614892a">NotifCreateUserUsernameTextbox</a>.Text, <a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a> enc = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(userToCreate);</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;                enc.<a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html#a681343928c67521c056568332690c424" title="Skifter TypeCode for et User object fra LogInUser til CreateUser. ">SetAsCreateUser</a>();</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = enc;</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;            }</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;            <span class="keywordflow">catch</span> (ArgumentNullException)</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;            {</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Neither username or password can be null or whitespace!&quot;</span>, <span class="stringliteral">&quot;Create User&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;            }</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;            <span class="keywordflow">catch</span> (ArgumentOutOfRangeException)</div>
<div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;            {</div>
<div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Username must be at least 3 characters long and password must be at least 6 characters long!&quot;</span>, <span class="stringliteral">&quot;Create User&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;            }</div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;</div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        }</div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="preprocessor">        #region Left Grid</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;</div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div>
<div class="line"><a name="l00278"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a67a81ec81600bd440e9ca423585f9995">  278</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a67a81ec81600bd440e9ca423585f9995" title="Event der køres når der klikkes på CreateTaskButton. ">CreateTaskButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;        {</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> != null)</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;            {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;                <span class="keywordflow">if</span> ((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).AssignedAdmin.Equals(<a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a>.<a class="code" href="class_s_w2_a311___lib_1_1_user.html#a618a2f56f64b6402acdba613d185868d">Username</a>))</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#aa5ae3d6357a04e7b7784260ca5bfa3d8" title="Viser/Skjuler vindet til at oprette opgaver. ">HideOrShowNotifCreateTask</a>();</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;                    MessageBox.Show(<span class="stringliteral">&quot;You have to be project admin to edit a project&quot;</span>, <span class="stringliteral">&quot;Create Task!&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            }</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please make sure to choose a project before trying to create a task!&quot;</span>, <span class="stringliteral">&quot;Create Task&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;        }</div>
<div class="line"><a name="l00298"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a762948f01cbc2be5569dba390416ad7a">  298</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a762948f01cbc2be5569dba390416ad7a" title="Event der køres når der klikkes på CreateUserButton. ">CreateUserButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        {</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a0f62bd4d1615bb857e8731addbce5fd7" title="Viser/Skjuler vindet til at oprette brugere. ">HideOrShowNotifCreateUser</a>();</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        }</div>
<div class="line"><a name="l00310"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ad03547dd53f34c15921511f4618c0bba">  310</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ad03547dd53f34c15921511f4618c0bba" title="Event der køres når der klikkes på CreateProject. ">CreateProjectButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        {</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a1bb3941cd9bc7235a135e2081177135c" title="Viser/Skjuler vindet til at oprette projekter. ">HideOrShowNotifCreateProject</a>();</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        }</div>
<div class="line"><a name="l00322"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#afec4e6b0e2c640c8b9cdbd142705bfd0">  322</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#afec4e6b0e2c640c8b9cdbd142705bfd0" title="Event der køres når der klikkes på CreateGanttButton. ">CreateGanttButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;        {</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem != null)</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;            {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;                <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd = <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;                <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ac562a9242366f87911a8c5fc94a14492" title="Antallet af opgaver i Ganttcharten. ">TotalTasks</a> = 0;</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                <span class="keywordflow">foreach</span> (<a class="code" href="class_s_w2_a311___lib_1_1_task.html" title="Task-strukturen, der laver opgave elementer til de enkelte projekter. ">Task</a> t <span class="keywordflow">in</span> pd.TaskList)</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;                    <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ac562a9242366f87911a8c5fc94a14492" title="Antallet af opgaver i Ganttcharten. ">TotalTasks</a>++;</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af8863f8be2fd44a376d382618a1c37f3" title="Viser/Skjuler vindet med Ganttcharten. ">HideOrShowGantt</a>();</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;            }</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please select a project in the drop menu before trying to generate a Gantt chart!&quot;</span>, <span class="stringliteral">&quot;Create Gantt chart&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;        }</div>
<div class="line"><a name="l00343"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#af23f9efd5402c63a71bd2f0e4198a28f">  343</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#af23f9efd5402c63a71bd2f0e4198a28f" title="Event der køres når der klikkes på ChangeAdminButton. ">ChangeAdminButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        {</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a073ef435780c67f96c696ad8995f7a7a" title="Viser/Skjuler vindet til at skifte admin for et projekt ">HideOrShowNotifChangeAdmin</a>();</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;        }</div>
<div class="line"><a name="l00355"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a004c6944a80d6f6d7a9462752972523a">  355</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a004c6944a80d6f6d7a9462752972523a" title="Event der køres når der åbnes for ComboBox med projekter. ">ProjectComboBox_DropDownOpened</a>(<span class="keywordtype">object</span> sender, EventArgs e)</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;        {</div>
<div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;        }</div>
<div class="line"><a name="l00367"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#afe1c4029524a364fc37b9bd2a9ad55f2">  367</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#afe1c4029524a364fc37b9bd2a9ad55f2" title="Event der køres når der vælges et nyt element i Projekt-ComboBox ">ProjectComboBox_SelectionChanged</a>(<span class="keywordtype">object</span> sender, SelectionChangedEventArgs e)</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;        {</div>
<div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#af6d6bb862a48c481f2e03b3e2413c2ad" title="Metode der Opdaterer tasklisten for det valgte projekt. ">RefreshTaskList</a>();</div>
<div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9e1458e7fdc5785157a47a5a97e1d202" title="Metode der Opdaterer projekt-info&#39;en for det valgte projekt. ">RefreshProjectLabelInfo</a>();</div>
<div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;        }</div>
<div class="line"><a name="l00377"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a90d87628d71b35a6c96603b9ce2b27f2">  377</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a90d87628d71b35a6c96603b9ce2b27f2" title="Event der køres når ServerIPTextBox får fokus fra brugeren. ">ServerIPTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;        {</div>
<div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a06df262bc40c1aa08646d7c5ff89dc11">ServerIPTextBox</a>, <span class="stringliteral">&quot;127.0.0.1&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>);</div>
<div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;        }</div>
<div class="line"><a name="l00386"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa2d175f904f654542b37f730332737aa">  386</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa2d175f904f654542b37f730332737aa" title="Event der køres når ServerIPTextBox mister fokus fra brugeren. ">ServerIPTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00387"></a><span class="lineno">  387</span>&#160;        {</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a06df262bc40c1aa08646d7c5ff89dc11">ServerIPTextBox</a>, <span class="stringliteral">&quot;127.0.0.1&quot;</span>);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;        }</div>
<div class="line"><a name="l00395"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa1d899ed30a21c6ffd3d58a71e2b64cf">  395</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa1d899ed30a21c6ffd3d58a71e2b64cf" title="Event der køres når ServerPortTextBox får fokus fra brugeren. ">ServerPortTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;        {</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#ac0cfef105a88c4e650e1b59739fbe508">ServerPortTextBox</a>, <span class="stringliteral">&quot;8100&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>);</div>
<div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;        }</div>
<div class="line"><a name="l00404"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aca8c06b4fa28b4fa6930ed792fb8978c">  404</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aca8c06b4fa28b4fa6930ed792fb8978c" title="Event der køres når ServerPortTextBox mister fokus fra brugeren. ">ServerPortTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        {</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#ac0cfef105a88c4e650e1b59739fbe508">ServerPortTextBox</a>, <span class="stringliteral">&quot;8100&quot;</span>);</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        }</div>
<div class="line"><a name="l00413"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a48c2172cdbb17509e0c28e7789089ea7">  413</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a48c2172cdbb17509e0c28e7789089ea7" title="Event der køres når UsernameTextBox får fokus fra brugeren. ">UsernameTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        {</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a030464be1aca32fbc81b6694a0329b7c">UsernameTextBox</a>, <span class="stringliteral">&quot;Username&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>);</div>
<div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;        }</div>
<div class="line"><a name="l00422"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a369ee45583a9fea4c8c3a015a9248e96">  422</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a369ee45583a9fea4c8c3a015a9248e96" title="Event der køres når UsernameTextBox mister fokus fra brugeren. ">UsernameTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;        {</div>
<div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a030464be1aca32fbc81b6694a0329b7c">UsernameTextBox</a>, <span class="stringliteral">&quot;Username&quot;</span>);</div>
<div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;        }</div>
<div class="line"><a name="l00431"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ae44bde0f395b1ebc48f3ed08da974252">  431</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ae44bde0f395b1ebc48f3ed08da974252" title="Event der køres når PasswordPasswordBox får fokus fra brugeren. ">PasswordPasswordBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;        {</div>
<div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Password.Equals(<span class="stringliteral">&quot;Password&quot;</span>) || <span class="keywordtype">string</span>.IsNullOrWhiteSpace(<a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Password))</div>
<div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Clear();</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>.IsDefault = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;        }</div>
<div class="line"><a name="l00442"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ad6b878d8aee059cc67521a97b2121a2c">  442</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ad6b878d8aee059cc67521a97b2121a2c" title="Event der køres når PasswordPasswordBox mister fokus fra brugeren. ">PasswordPasswordBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;        {</div>
<div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;            <span class="keywordflow">if</span> (<span class="keywordtype">string</span>.IsNullOrWhiteSpace(<a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Password))</div>
<div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Password = <span class="stringliteral">&quot;Password&quot;</span>;</div>
<div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;        }</div>
<div class="line"><a name="l00455"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a540a26be1bb9b466b6c48d2aa2126bbc">  455</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a540a26be1bb9b466b6c48d2aa2126bbc" title="Event der køres når der klikkes på ConnectButton. ">ConnectButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;        {</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;            <span class="keywordflow">try</span></div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;            {</div>
<div class="line"><a name="l00459"></a><span class="lineno">  459</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a53a6e0cd76095f8b5a88cb8bc9972d22" title="Metode til at oprette forbindelse til en server. ">ConnectToServer</a>(<a class="code" href="class_client_1_1_main_window.html#a06df262bc40c1aa08646d7c5ff89dc11">ServerIPTextBox</a>.Text, <a class="code" href="class_client_1_1_main_window.html#ac0cfef105a88c4e650e1b59739fbe508">ServerPortTextBox</a>.Text, <a class="code" href="class_client_1_1_main_window.html#a030464be1aca32fbc81b6694a0329b7c">UsernameTextBox</a>.Text, <a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.Password);</div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;            }</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;            <span class="keywordflow">catch</span> (ArgumentNullException)</div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;            {</div>
<div class="line"><a name="l00463"></a><span class="lineno">  463</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Failed to connect to server, make sure the information is correct!&quot;</span>, <span class="stringliteral">&quot;Connect to server&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Error);</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;            }</div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;            <span class="keywordflow">catch</span> (ArgumentOutOfRangeException)</div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;            {</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Server IP &amp; Port must be a valid value!&quot;</span>, <span class="stringliteral">&quot;Connect to server&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Error);</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;            }</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        }</div>
<div class="line"><a name="l00478"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a210bd07c91474f1c7a3efe463baa96a0">  478</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a210bd07c91474f1c7a3efe463baa96a0" title="Event der køres når der klikkes på ConnectButton. ">DisconnectButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;        {</div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#af0dfd0f961865442936b82b56cd08d94" title="Metode til at afbryde forbindelsen fra serveren. ">DisconnectFromServer</a>();</div>
<div class="line"><a name="l00481"></a><span class="lineno">  481</span>&#160;        }</div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;<span class="preprocessor">        #region Notif-menuer</span></div>
<div class="line"><a name="l00485"></a><span class="lineno">  485</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #region Create Project</span></div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;</div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;</div>
<div class="line"><a name="l00489"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ac7bb29988fbee33e3749d4cb78c1284e">  489</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ac7bb29988fbee33e3749d4cb78c1284e" title="Nulstiller &quot;tilføj projekt&quot;-vinduet til oprindelig status ">NotifCreateProjectReset</a>()</div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        {</div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>.Text = <span class="stringliteral">&quot;Enter project name&quot;</span>;</div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a752efb6d29757e6b09e2ca65337b7578">NotifCreateProjectStartDT</a>.SelectedDate = DateTime.Now;</div>
<div class="line"><a name="l00493"></a><span class="lineno">  493</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#abde98ff7252d21a81ad3655477236f46">NotifCreateProjectEndDT</a>.SelectedDate = DateTime.Now;</div>
<div class="line"><a name="l00494"></a><span class="lineno">  494</span>&#160;        }</div>
<div class="line"><a name="l00503"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa27cc356f26d2ed20b75b11d6a92a053">  503</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa27cc356f26d2ed20b75b11d6a92a053" title="Event der køres når man vælger en starttid for en opgave ">NotifCreateProjectStartDT_SelectedDateChanged</a>(<span class="keywordtype">object</span> sender, SelectionChangedEventArgs e)</div>
<div class="line"><a name="l00504"></a><span class="lineno">  504</span>&#160;        {</div>
<div class="line"><a name="l00505"></a><span class="lineno">  505</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#abde98ff7252d21a81ad3655477236f46">NotifCreateProjectEndDT</a>.DisplayDateStart = <a class="code" href="class_client_1_1_main_window.html#a752efb6d29757e6b09e2ca65337b7578">NotifCreateProjectStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00506"></a><span class="lineno">  506</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#abde98ff7252d21a81ad3655477236f46">NotifCreateProjectEndDT</a>.DisplayDateEnd = DateTime.MaxValue;</div>
<div class="line"><a name="l00507"></a><span class="lineno">  507</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#abde98ff7252d21a81ad3655477236f46">NotifCreateProjectEndDT</a>.SelectedDate = <a class="code" href="class_client_1_1_main_window.html#a752efb6d29757e6b09e2ca65337b7578">NotifCreateProjectStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00508"></a><span class="lineno">  508</span>&#160;        }</div>
<div class="line"><a name="l00514"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ac43db35c536bfd4fa4f154d466f06026">  514</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ac43db35c536bfd4fa4f154d466f06026" title="Event der køres når NotifCreateProjectProjectNameTextBox får fokus fra brugeren. ">NotifCreateProjectProjectNameTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;        {</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>, <span class="stringliteral">&quot;Enter project name&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#af4909c931b3e44c37af1d89e1bb89f84">NotifCreateProjectAddButton</a>);</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;        }</div>
<div class="line"><a name="l00523"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa4ef32355adeea6fc0ddb24e87b741e4">  523</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa4ef32355adeea6fc0ddb24e87b741e4" title="Event der køres når NotifCreateProjectProjectNameTextBox mister fokus fra brugeren. ">NotifCreateProjectProjectNameTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;        {</div>
<div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>, <span class="stringliteral">&quot;Enter project name&quot;</span>);</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        }</div>
<div class="line"><a name="l00535"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a8f7f7774d43f1cd9cf0aa9a8c6933ceb">  535</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a8f7f7774d43f1cd9cf0aa9a8c6933ceb" title="Event der køres når der klikkes på NotifCreateProjectAddButton. ">NotifCreateProjectAddButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;        {</div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160;            <span class="keywordflow">if</span> (!String.IsNullOrWhiteSpace(<a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>.Text) &amp;&amp;</div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;                (!String.Equals(<span class="stringliteral">&quot;Enter project name&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>.Text)))</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;            {</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a583f601d2ea137c0dea0037c34d15948" title="Laver et nyt projekt fra GUI&#39;en. ">CreateProject</a>(<a class="code" href="class_client_1_1_main_window.html#a2f81b81a4044cb53a1257396c003e85f">NotifCreateProjectProjectNameTextBox</a>.Text,</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a752efb6d29757e6b09e2ca65337b7578">NotifCreateProjectStartDT</a>.SelectedDate.Value,</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#abde98ff7252d21a81ad3655477236f46">NotifCreateProjectEndDT</a>.SelectedDate.Value);</div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a1bb3941cd9bc7235a135e2081177135c" title="Viser/Skjuler vindet til at oprette projekter. ">HideOrShowNotifCreateProject</a>();</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;            }</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;        }</div>
<div class="line"><a name="l00555"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a05f945402cf15a06a9af54b4c924c153">  555</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a05f945402cf15a06a9af54b4c924c153" title="Event der køres når der klikkes på NotifCreateProjectCancelButton. ">NotifCreateProjectCancelButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;        {</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a1bb3941cd9bc7235a135e2081177135c" title="Viser/Skjuler vindet til at oprette projekter. ">HideOrShowNotifCreateProject</a>();</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;        }</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;<span class="preprocessor">        #region Create Task</span></div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div>
<div class="line"><a name="l00565"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aaab0ceffe3883830423777fc7708d9d8">  565</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aaab0ceffe3883830423777fc7708d9d8" title="Nulstiller &quot;tilføj opgave&quot;-vinduet til oprindelig status ">NotifCreateTaskReset</a>()</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;        {</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>.Text = <span class="stringliteral">&quot;Enter task name&quot;</span>;</div>
<div class="line"><a name="l00568"></a><span class="lineno">  568</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#afa7471804722ea9f6958a3b6b9d9eadc">NotifCreateTaskTaskDescriptionTextBox</a>.Text = <span class="stringliteral">&quot;Enter task description&quot;</span>;</div>
<div class="line"><a name="l00569"></a><span class="lineno">  569</span>&#160;</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.DisplayDateStart = (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).ProjectStart;</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.DisplayDateEnd = (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).ProjectEnd;</div>
<div class="line"><a name="l00572"></a><span class="lineno">  572</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate = (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).ProjectStart;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.DisplayDateStart = <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.DisplayDateEnd = (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).ProjectEnd;</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.SelectedDate = <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        }</div>
<div class="line"><a name="l00586"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa03ad9f9f9a740c7d40755fba418d569">  586</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa03ad9f9f9a740c7d40755fba418d569" title="Event der køres når man vælger en starttid for en opgave ">NotifCreateTaskStartDT_SelectedDateChanged</a>(<span class="keywordtype">object</span> sender, SelectionChangedEventArgs e)</div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        {</div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.DisplayDateStart = <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.DisplayDateEnd = (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>).ProjectEnd;</div>
<div class="line"><a name="l00590"></a><span class="lineno">  590</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.SelectedDate = <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate;</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        }</div>
<div class="line"><a name="l00597"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ae4dd3f8ae4c62b85366740d30a651cd4">  597</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ae4dd3f8ae4c62b85366740d30a651cd4" title="Event der køres når NotifCreateTaskTaskNameTextBox får fokus fra brugeren. ">NotifCreateTaskTaskNameTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00598"></a><span class="lineno">  598</span>&#160;        {</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>, <span class="stringliteral">&quot;Enter task name&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#aecb8702d743be3428404aae820255839">NotifCreateTaskAddButton</a>);</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;        }</div>
<div class="line"><a name="l00606"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7fcc0a119ed3f57aa84ce941b6c46734">  606</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a7fcc0a119ed3f57aa84ce941b6c46734" title="Event der køres når NotifCreateTaskTaskNameTextBox mister fokus fra brugeren. ">NotifCreateTaskTaskNameTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00607"></a><span class="lineno">  607</span>&#160;        {</div>
<div class="line"><a name="l00608"></a><span class="lineno">  608</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>, <span class="stringliteral">&quot;Enter task name&quot;</span>);</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;        }</div>
<div class="line"><a name="l00615"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a9dbdb2d7e11a5ab4d8d04a0afda42d7a">  615</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a9dbdb2d7e11a5ab4d8d04a0afda42d7a" title="Event der køres når NotifCreateTaskTaskDescriptionTextBox får fokus fra brugeren. ...">NotifCreateTaskTaskDescriptionTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00616"></a><span class="lineno">  616</span>&#160;        {</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#afa7471804722ea9f6958a3b6b9d9eadc">NotifCreateTaskTaskDescriptionTextBox</a>, <span class="stringliteral">&quot;Enter task description&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#aecb8702d743be3428404aae820255839">NotifCreateTaskAddButton</a>);</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;        }</div>
<div class="line"><a name="l00624"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#adcf914f5dbe15f97c15105100c17ed38">  624</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#adcf914f5dbe15f97c15105100c17ed38" title="Event der køres når NotifCreateTaskTaskDescriptionTextBox får fokus fra brugeren. ...">NotifCreateTaskTaskDescriptionTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        {</div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#afa7471804722ea9f6958a3b6b9d9eadc">NotifCreateTaskTaskDescriptionTextBox</a>, <span class="stringliteral">&quot;Enter task description&quot;</span>);</div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;        }</div>
<div class="line"><a name="l00636"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a58bf1fcb3277692e30b9fbaf0f986478">  636</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a58bf1fcb3277692e30b9fbaf0f986478" title="Event der køres når der klikkes på NotifCreateTaskAddButton. ">NotifCreateTaskAddButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;        {</div>
<div class="line"><a name="l00638"></a><span class="lineno">  638</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a1d8c08c106eab860a6ffb84150636fb0" title="Laver en opgave til et valgt projekt. ">CreateTask</a>(<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>,</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>.Text,</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#afa7471804722ea9f6958a3b6b9d9eadc">NotifCreateTaskTaskDescriptionTextBox</a>.Text,</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aec5b171b1dfcae834cca995642d83e25">NotifCreateTaskStartDT</a>.SelectedDate.Value,</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a375a10ba8a113b9f87fbd7f1fd940b67">NotifCreateTaskEndDT</a>.SelectedDate.Value);</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aaab0ceffe3883830423777fc7708d9d8" title="Nulstiller &quot;tilføj opgave&quot;-vinduet til oprindelig status ">NotifCreateTaskReset</a>();</div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>.Focus();</div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;        }</div>
<div class="line"><a name="l00655"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a00ad0d9a67c064c5304aff74f29ab89a">  655</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a00ad0d9a67c064c5304aff74f29ab89a" title="Event der køres når der klikkes på NotifCreateTaskCancelButton. ">NotifCreateTaskCancelButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00656"></a><span class="lineno">  656</span>&#160;        {</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aa5ae3d6357a04e7b7784260ca5bfa3d8" title="Viser/Skjuler vindet til at oprette opgaver. ">HideOrShowNotifCreateTask</a>();</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;        }</div>
<div class="line"><a name="l00659"></a><span class="lineno">  659</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00660"></a><span class="lineno">  660</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00661"></a><span class="lineno">  661</span>&#160;<span class="preprocessor">        #region Create User</span></div>
<div class="line"><a name="l00662"></a><span class="lineno">  662</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;</div>
<div class="line"><a name="l00665"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a2f23077e4e481ab4ea4a71afd025deee">  665</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a2f23077e4e481ab4ea4a71afd025deee" title="Nulstiller &quot;tilføj bruger&quot;-vinduet til oprindelig status ">NotifCreateUserReset</a>()</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;        {</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aefec60f2c2087796f9b99a513614892a">NotifCreateUserUsernameTextbox</a>.Text = <span class="stringliteral">&quot;Enter username&quot;</span>;</div>
<div class="line"><a name="l00668"></a><span class="lineno">  668</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password = <span class="stringliteral">&quot;Password&quot;</span>;</div>
<div class="line"><a name="l00669"></a><span class="lineno">  669</span>&#160;        }</div>
<div class="line"><a name="l00675"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ac0de382dccca80e5fc4980510b7303b4">  675</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ac0de382dccca80e5fc4980510b7303b4" title="Event der køres når NotifCreateUserPasswordPasswordBo mister fokus fra brugeren. ">NotifCreateUserPasswordPasswordBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00676"></a><span class="lineno">  676</span>&#160;        {</div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;            <span class="keywordflow">if</span> (<span class="keywordtype">string</span>.IsNullOrWhiteSpace(<a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password))</div>
<div class="line"><a name="l00678"></a><span class="lineno">  678</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password = <span class="stringliteral">&quot;Password&quot;</span>;</div>
<div class="line"><a name="l00679"></a><span class="lineno">  679</span>&#160;        }</div>
<div class="line"><a name="l00685"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a2dc6503546b828b94324a5936a79a33c">  685</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a2dc6503546b828b94324a5936a79a33c" title="Event der køres når NotifCreateUserPasswordPasswordBo får fokus fra brugeren. ">NotifCreateUserPasswordPasswordBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;        {</div>
<div class="line"><a name="l00687"></a><span class="lineno">  687</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password.Equals(<span class="stringliteral">&quot;Password&quot;</span>) || <span class="keywordtype">string</span>.IsNullOrWhiteSpace(<a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password))</div>
<div class="line"><a name="l00688"></a><span class="lineno">  688</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Clear();</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#acaf36a94cbbfc3ee58dd40535b1efb54">NotifCreateUserAddButton</a>.IsDefault = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;        }</div>
<div class="line"><a name="l00696"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7f9d310231b83f6eaa7b7b4866db9087">  696</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a7f9d310231b83f6eaa7b7b4866db9087" title="Event der køres når NotifCreateUserUsernameTextbox får fokus fra brugeren. ">NotifCreateUserUsernameTextbox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00697"></a><span class="lineno">  697</span>&#160;        {</div>
<div class="line"><a name="l00698"></a><span class="lineno">  698</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#aefec60f2c2087796f9b99a513614892a">NotifCreateUserUsernameTextbox</a>, <span class="stringliteral">&quot;Enter username&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#acaf36a94cbbfc3ee58dd40535b1efb54">NotifCreateUserAddButton</a>);</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;        }</div>
<div class="line"><a name="l00705"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a242afcd093040cf1d5a1a84c7cad1d4b">  705</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a242afcd093040cf1d5a1a84c7cad1d4b" title="Event der køres når NotifCreateUserUsernameTextbox mister fokus fra brugeren. ">NotifCreateUserUsernameTextbox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00706"></a><span class="lineno">  706</span>&#160;        {</div>
<div class="line"><a name="l00707"></a><span class="lineno">  707</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#aefec60f2c2087796f9b99a513614892a">NotifCreateUserUsernameTextbox</a>, <span class="stringliteral">&quot;Enter username&quot;</span>);</div>
<div class="line"><a name="l00708"></a><span class="lineno">  708</span>&#160;        }</div>
<div class="line"><a name="l00717"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a332272b14f1b77cfac5a05d385790468">  717</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a332272b14f1b77cfac5a05d385790468" title="Event der køres når der klikkes på NotifCreateUserAddButton. ">NotifCreateUserAddButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;        {</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a3941a36669e3aec0a1d570c896d08275" title="Opretter en ny bruger ">CreateUser</a>(<a class="code" href="class_client_1_1_main_window.html#aefec60f2c2087796f9b99a513614892a">NotifCreateUserUsernameTextbox</a>.Text, <a class="code" href="class_client_1_1_main_window.html#a0a00c3f7ce662857ad7e6c45564e9c36">NotifCreateUserPasswordPasswordBox</a>.Password);</div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a0f62bd4d1615bb857e8731addbce5fd7" title="Viser/Skjuler vindet til at oprette brugere. ">HideOrShowNotifCreateUser</a>();</div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;        }</div>
<div class="line"><a name="l00730"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#af3fe894e9db2fb72f6178e2d4ee24b8e">  730</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#af3fe894e9db2fb72f6178e2d4ee24b8e" title="Event der køres når der klikkes på NotifCreateUserCancelButton. ">NotifCreateUserCancelButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;        {</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a0f62bd4d1615bb857e8731addbce5fd7" title="Viser/Skjuler vindet til at oprette brugere. ">HideOrShowNotifCreateUser</a>();</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;        }</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;<span class="preprocessor">        #region Change admin</span></div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;</div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;</div>
<div class="line"><a name="l00742"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a2cd702859559075e2f92760792f52719">  742</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a2cd702859559075e2f92760792f52719" title="Event der køres når NotifChangeAdminUsernameTextBox får fokus fra brugeren. ">NotifChangeAdminUsernameTextBox_GotFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00743"></a><span class="lineno">  743</span>&#160;        {</div>
<div class="line"><a name="l00744"></a><span class="lineno">  744</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a7e7101014e4b979e3783ce26b8f73dec">NotifChangeAdminUsernameTextBox</a>, <span class="stringliteral">&quot;Admin name&quot;</span>, <a class="code" href="class_client_1_1_main_window.html#ac4196d3cef2268ca8cba51c850263a2c">NotifChangeAdminAdd</a>);</div>
<div class="line"><a name="l00745"></a><span class="lineno">  745</span>&#160;        }</div>
<div class="line"><a name="l00751"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ae95e59a29259c79ed8b4e6b12d4588eb">  751</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ae95e59a29259c79ed8b4e6b12d4588eb" title="Event der køres når NotifChangeAdminUsernameTextBox mister fokus fra brugeren. ">NotifChangeAdminUsernameTextBox_LostFocus</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;        {</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(<a class="code" href="class_client_1_1_main_window.html#a7e7101014e4b979e3783ce26b8f73dec">NotifChangeAdminUsernameTextBox</a>, <span class="stringliteral">&quot;Admin name&quot;</span>);</div>
<div class="line"><a name="l00754"></a><span class="lineno">  754</span>&#160;        }</div>
<div class="line"><a name="l00763"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#afbe002522dbf4613db23834d2a7cbf65">  763</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#afbe002522dbf4613db23834d2a7cbf65" title="Event der køres når der klikkes på NotifChangeAdminAdd. ">NotifChangeAdminAdd_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        {</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;            <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd = <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>;</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;            <span class="keywordflow">if</span> (pd != null)</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;            {</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;                <span class="keywordflow">if</span> (pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a699f323ee86441e0afabb4cc90665916">AssignedAdmin</a>.Equals(<a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a>.<a class="code" href="class_s_w2_a311___lib_1_1_user.html#a618a2f56f64b6402acdba613d185868d">Username</a>))</div>
<div class="line"><a name="l00769"></a><span class="lineno">  769</span>&#160;                {</div>
<div class="line"><a name="l00770"></a><span class="lineno">  770</span>&#160;                    <span class="keywordflow">try</span></div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;                    {</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;                        pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a699f323ee86441e0afabb4cc90665916">AssignedAdmin</a> = <a class="code" href="class_client_1_1_main_window.html#a7e7101014e4b979e3783ce26b8f73dec">NotifChangeAdminUsernameTextBox</a>.Text;</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a0677c65be53503572ba4a16f0195b7ca" title="Add Project metode med minimalt input. ">Add</a>(pd);</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(pd);</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;                    }</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;                    <span class="keywordflow">catch</span> (ArgumentException)</div>
<div class="line"><a name="l00778"></a><span class="lineno">  778</span>&#160;                    {</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;                        MessageBox.Show(<span class="stringliteral">&quot;Invalid arguments!&quot;</span>, <span class="stringliteral">&quot;Change admin&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;                    }</div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;                    <span class="keywordflow">finally</span></div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;                    {</div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a073ef435780c67f96c696ad8995f7a7a" title="Viser/Skjuler vindet til at skifte admin for et projekt ">HideOrShowNotifChangeAdmin</a>();</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;                    }</div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;                }</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00787"></a><span class="lineno">  787</span>&#160;                    MessageBox.Show(<span class="stringliteral">&quot;Can&#39;t change admin on a project you aren&#39;t the current admin!&quot;</span>, <span class="stringliteral">&quot;Change admin&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00788"></a><span class="lineno">  788</span>&#160;            }</div>
<div class="line"><a name="l00789"></a><span class="lineno">  789</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l00790"></a><span class="lineno">  790</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Please pick a project to change admin for!&quot;</span>, <span class="stringliteral">&quot;Change admin&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Stop);</div>
<div class="line"><a name="l00791"></a><span class="lineno">  791</span>&#160;</div>
<div class="line"><a name="l00792"></a><span class="lineno">  792</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedIndex = <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a15ba21ecb4f07eb8ace375610e0d2a60" title="Finder index til specifikt project og returnerer det. ">IndexOf</a>(pd);</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;        }</div>
<div class="line"><a name="l00803"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a86c805366f453ddee8bedf352d3ca27a">  803</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a86c805366f453ddee8bedf352d3ca27a" title="Event der køres når der klikkes på NotifChangeAdminCancel. ">NotifChangeAdminCancel_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00804"></a><span class="lineno">  804</span>&#160;        {</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a073ef435780c67f96c696ad8995f7a7a" title="Viser/Skjuler vindet til at skifte admin for et projekt ">HideOrShowNotifChangeAdmin</a>();</div>
<div class="line"><a name="l00806"></a><span class="lineno">  806</span>&#160;        }</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;<span class="preprocessor"></span><span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;<span class="preprocessor">        #region Gantt</span></div>
<div class="line"><a name="l00811"></a><span class="lineno">  811</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00812"></a><span class="lineno">  812</span>&#160;</div>
<div class="line"><a name="l00813"></a><span class="lineno">  813</span>&#160;</div>
<div class="line"><a name="l00814"></a><span class="lineno">  814</span>&#160;</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;</div>
<div class="line"><a name="l00816"></a><span class="lineno">  816</span>&#160;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;</div>
<div class="line"><a name="l00818"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a873c97f8e849573d8d0f5404ee084500">  818</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a873c97f8e849573d8d0f5404ee084500" title="Sætter størrelsen på det Canvas som Ganttcharten genereres i. ">SetTaskCanvasSize</a>(<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd)</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;        {</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;            <span class="keywordtype">double</span> tempWidth = 0;</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;            <span class="keywordtype">double</span> tempHeight = 0;</div>
<div class="line"><a name="l00822"></a><span class="lineno">  822</span>&#160;</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;            <span class="keywordflow">if</span> (pd != null)</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;            {</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;                <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#a4ca405ad79fa00285fc52da2507587a3" title="Metode der bestemmer OneDayInPxWidth ud fra en vindues-bredde og antallet af dage i et projekt...">SetOneDayPxSize</a>(<a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.ActualWidth, <a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>, pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>));</div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;                tempWidth = (</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;                            (<a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>, pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad643b3391b914af23732008c1cc408f7" title="Bredden på et element. ">OneDayInPxWidth</a>) +</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;                            (<a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>, pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ae3e72e2f0e65b9c262b5028382371dd6" title="Padding der er horizontalt mellem elementer. ">ElementHorizontalPadding</a>)</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;                            );</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;                <span class="keywordtype">double</span> canvasHeight = ((<a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ac562a9242366f87911a8c5fc94a14492" title="Antallet af opgaver i Ganttcharten. ">TotalTasks</a> * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad60911289c307ebe03a89a83f2bcec57" title="Højden på et element ">OneElementInPxHeight</a>) + (<a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ac562a9242366f87911a8c5fc94a14492" title="Antallet af opgaver i Ganttcharten. ">TotalTasks</a> * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#abc303fd577ecd0ab72e6232b8ae2cf35" title="Padding der er vertikalt mellem elementer. ">ElementVerticalPadding</a>)); ;</div>
<div class="line"><a name="l00833"></a><span class="lineno">  833</span>&#160;                <span class="keywordflow">if</span> (canvasHeight &lt; <a class="code" href="class_client_1_1_main_window.html#ac6ff29755ace491931f9c4aacf8425fc">GanttScrollviewer</a>.ActualHeight)</div>
<div class="line"><a name="l00834"></a><span class="lineno">  834</span>&#160;                    tempHeight = <a class="code" href="class_client_1_1_main_window.html#ac6ff29755ace491931f9c4aacf8425fc">GanttScrollviewer</a>.ActualHeight;</div>
<div class="line"><a name="l00835"></a><span class="lineno">  835</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;                    tempHeight = canvasHeight;</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;            }</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;</div>
<div class="line"><a name="l00839"></a><span class="lineno">  839</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.Width = tempWidth;</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.Height = tempHeight;</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        }</div>
<div class="line"><a name="l00847"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a25ce6c397c9339aaa229ed278f0570a4">  847</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a25ce6c397c9339aaa229ed278f0570a4" title="Event der køres når størrelsen på Canvas hvor Ganttcharten er i ændres. ">Gantt_SizeChanged</a>(<span class="keywordtype">object</span> sender, SizeChangedEventArgs e)</div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;        {</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.ActualWidth &lt; <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.ActualWidth / 2 || <a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.ActualHeight &lt; <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.ActualHeight / 2)</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a18d7852df5c0ddafffca86bbfb06fc01" title="Metode der Opdaterer Ganttcharten. ">RefreshGantt</a>();</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        }</div>
<div class="line"><a name="l00857"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a8a02f17d2376e1a096eba03831fc7adf">  857</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a8a02f17d2376e1a096eba03831fc7adf" title="Metode der sørger for at &quot;tegne&quot; to bjælker i toppen af Ganttcharten med hhv. måneder og dato ...">DrawDateLine</a>(DateTime startDate, DateTime endDate)</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;        {</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;            DateTime tempDiff = startDate;</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;            <span class="keywordtype">string</span> labelText;</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;            <span class="keywordtype">int</span> monthDrawed = 0;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;            <span class="keywordtype">double</span> xCoord = 0;</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;            <span class="keywordtype">double</span> yCoord = 0;</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;            <span class="keywordflow">while</span> (tempDiff &lt;= endDate)</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;            {</div>
<div class="line"><a name="l00866"></a><span class="lineno">  866</span>&#160;                <span class="keywordflow">if</span> (tempDiff.Month != monthDrawed)</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;                {</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;                    labelText = tempDiff.ToString(<span class="stringliteral">&quot;MMMM&quot;</span>);</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;                    <span class="keywordtype">double</span> daysInCurrentMonth = DateTime.DaysInMonth(tempDiff.Year, tempDiff.Month) - (tempDiff.Day - 1);</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;                    <span class="keywordtype">double</span> monthInPx = (daysInCurrentMonth * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad643b3391b914af23732008c1cc408f7" title="Bredden på et element. ">OneDayInPxWidth</a>) + ((daysInCurrentMonth - 1) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#abc303fd577ecd0ab72e6232b8ae2cf35" title="Padding der er vertikalt mellem elementer. ">ElementVerticalPadding</a>);</div>
<div class="line"><a name="l00871"></a><span class="lineno">  871</span>&#160;                    xCoord = <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#a26600c2fcc8217c8f62ffc126842ffbf" title="Finder X-koordinatet for et element efter start- og slut-tidspunkt. ">GetElementXCoordinate</a>(startDate, tempDiff) + <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#abc303fd577ecd0ab72e6232b8ae2cf35" title="Padding der er vertikalt mellem elementer. ">ElementVerticalPadding</a>;</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;                    yCoord = 0;</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a3d5574c475f78f240b00263f6a16613d" title="Genererer en label ud fra en række af informationer og placerer det i det Canvas hvor Ganttcharten ge...">DrawLabel</a>(xCoord, yCoord, monthInPx, labelText);</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;                    monthDrawed = tempDiff.Month;</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;                }</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;                labelText = tempDiff.Day.ToString();</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;                xCoord = <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#a26600c2fcc8217c8f62ffc126842ffbf" title="Finder X-koordinatet for et element efter start- og slut-tidspunkt. ">GetElementXCoordinate</a>(startDate, tempDiff) + <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#abc303fd577ecd0ab72e6232b8ae2cf35" title="Padding der er vertikalt mellem elementer. ">ElementVerticalPadding</a>;</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;                yCoord = <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad60911289c307ebe03a89a83f2bcec57" title="Højden på et element ">OneElementInPxHeight</a> + <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ae3e72e2f0e65b9c262b5028382371dd6" title="Padding der er horizontalt mellem elementer. ">ElementHorizontalPadding</a>;</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a3d5574c475f78f240b00263f6a16613d" title="Genererer en label ud fra en række af informationer og placerer det i det Canvas hvor Ganttcharten ge...">DrawLabel</a>(xCoord, yCoord, <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad643b3391b914af23732008c1cc408f7" title="Bredden på et element. ">OneDayInPxWidth</a>, labelText);</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;                tempDiff = tempDiff.AddDays(1);</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;            }</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;        }</div>
<div class="line"><a name="l00892"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#acc5b98d1317daf5039c9a6702727fdde">  892</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#acc5b98d1317daf5039c9a6702727fdde" title="Metode til at tegne opgaver ind i Ganttcharten ">DrawGanttTaskBody</a>(<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd)</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;        {</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;            <span class="keywordtype">double</span> xCord = 0;</div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;            <span class="keywordtype">double</span> yCord;</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;            <span class="keywordtype">double</span> taskLength;</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;            <span class="keywordflow">if</span> (pd != null)</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;                <span class="keywordflow">foreach</span> (<a class="code" href="class_s_w2_a311___lib_1_1_task.html" title="Task-strukturen, der laver opgave elementer til de enkelte projekter. ">Task</a> t <span class="keywordflow">in</span> pd.TaskList)</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;                {</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;                    yCord = ((pd.TaskList.IndexOf(t) + 2) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad60911289c307ebe03a89a83f2bcec57" title="Højden på et element ">OneElementInPxHeight</a>) + (<a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#abc303fd577ecd0ab72e6232b8ae2cf35" title="Padding der er vertikalt mellem elementer. ">ElementVerticalPadding</a> * (pd.TaskList.IndexOf(t) + 2));</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;                    xCord = <a class="code" href="class_client_1_1_main_window.html#acc89883ab37d36830c3a7fc23ad0169f" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenProjectAndTask</a>(pd.ProjectStart, t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#a6796310900992b9f61da59f995961104">TaskStart</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad643b3391b914af23732008c1cc408f7" title="Bredden på et element. ">OneDayInPxWidth</a> + (<a class="code" href="class_client_1_1_main_window.html#acc89883ab37d36830c3a7fc23ad0169f" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenProjectAndTask</a>(pd.ProjectStart, t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#a6796310900992b9f61da59f995961104">TaskStart</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ae3e72e2f0e65b9c262b5028382371dd6" title="Padding der er horizontalt mellem elementer. ">ElementHorizontalPadding</a>);</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;                    taskLength = <a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#a6796310900992b9f61da59f995961104">TaskStart</a>, t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#ac7a1e6bac726fcd393520ea2f6ae70e9">TaskEnd</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad643b3391b914af23732008c1cc408f7" title="Bredden på et element. ">OneDayInPxWidth</a> + (<a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#a6796310900992b9f61da59f995961104">TaskStart</a>, t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#ac7a1e6bac726fcd393520ea2f6ae70e9">TaskEnd</a>) * <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ae3e72e2f0e65b9c262b5028382371dd6" title="Padding der er horizontalt mellem elementer. ">ElementHorizontalPadding</a>);</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a3d5574c475f78f240b00263f6a16613d" title="Genererer en label ud fra en række af informationer og placerer det i det Canvas hvor Ganttcharten ge...">DrawLabel</a>(xCord, yCord, taskLength, t.<a class="code" href="class_s_w2_a311___lib_1_1_task.html#a6f447459017b126eedbacaa1dfecb67f">TaskName</a>);</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;                }</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;        }</div>
<div class="line"><a name="l00915"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a3d5574c475f78f240b00263f6a16613d">  915</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a3d5574c475f78f240b00263f6a16613d" title="Genererer en label ud fra en række af informationer og placerer det i det Canvas hvor Ganttcharten ge...">DrawLabel</a>(<span class="keywordtype">double</span> xCoordinate, <span class="keywordtype">double</span> yCoordinate, <span class="keywordtype">double</span> taskLength, <span class="keywordtype">string</span> taskName)</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        {</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;            Label lbl = <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad53f650be261ba3c856bd35fba172e1d" title="Udformer selve labelen ud fra farve, bredde, højde og teksten der skal være. ">CreateLabel</a>(<a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#a4e0666ccd0f703ca5469af4b7b257762" title="Farven som er indeni elementerne. ">GanttFillColor</a>, taskLength, <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad60911289c307ebe03a89a83f2bcec57" title="Højden på et element ">OneElementInPxHeight</a>, taskName);</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.Children.Add(lbl);</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;            Canvas.SetTop(lbl, yCoordinate);</div>
<div class="line"><a name="l00920"></a><span class="lineno">  920</span>&#160;            Canvas.SetLeft(lbl, xCoordinate);</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;        }</div>
<div class="line"><a name="l00927"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a714143888cf94c165de94b576f7fa49a">  927</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a714143888cf94c165de94b576f7fa49a" title="Lukker vindet med Ganttcharten ">GanttCloseButton_Click</a>(<span class="keywordtype">object</span> sender, RoutedEventArgs e)</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;        {</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#af8863f8be2fd44a376d382618a1c37f3" title="Viser/Skjuler vindet med Ganttcharten. ">HideOrShowGantt</a>();</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        }</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;<span class="preprocessor">        #region Initialization &amp; GUI Refresh</span></div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;</div>
<div class="line"><a name="l00937"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aef71399868920f25e2d0406ebc2e794d">  937</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aef71399868920f25e2d0406ebc2e794d" title="Metode der køres når der skal oprettes forbindelse til en server. ">Init</a>()</div>
<div class="line"><a name="l00938"></a><span class="lineno">  938</span>&#160;        {</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ac1beace0121bd43a5b69948d4d04b75b" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateChatMessage</a> = <span class="keyword">new</span> <a class="code" href="class_client_1_1_main_window.html#a225d3e6f329ab8340f27b5d63300610c" title="En delegate til at håndtere vores chatbeskeder. ">HandleChatMessage</a>(<a class="code" href="class_client_1_1_main_window.html#a14000dd7082c7f9d73392b1af88f9407" title="Sørger for at placere chatbeskeden i vores chatbox. ">AppendChatMessageToTextbox</a>);</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a54666c6a2193129c81e03f9fe2e6c568" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateProjectData</a> = <span class="keyword">new</span> <a class="code" href="class_client_1_1_main_window.html#ac14a94233406d19ce1b46627c9a086b9" title="En delegate til at håndtere vores projekter. ">HandleProjectData</a>(<a class="code" href="class_client_1_1_main_window.html#a405bbb4b2d515bb9ca36b921afd2232f" title="Sørger for at et nyt projekt fra serveren bliver tilføjet til instansen af ProjectCollection. ">AddProjectDataToList</a>);</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a66f3e6e10c451e35ba67240d7a8f9475" title="Delegate som er nødvendig for vores GuiInputHandler til at bruge BeginInvoke. ">DelegateConnectStatus</a> = <span class="keyword">new</span> <a class="code" href="class_client_1_1_main_window.html#a73c581f05ec7ae398805bb2772a12547" title="BAAAK? ">ConnectStatus</a>(<a class="code" href="class_client_1_1_main_window.html#a02ea20532e71231561257a39ec6bcc77">ConnectedToServer</a>);</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;            <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a> PushToNetwork = <span class="keyword">new</span> <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>(); <span class="comment">//initializes events til at dele data med Netværks klassen</span></div>
<div class="line"><a name="l00944"></a><span class="lineno">  944</span>&#160;            <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a> PushToGUI = <span class="keyword">new</span> <a class="code" href="class_client_1_1_event_driven_share.html" title="Event klasse, til deling mellem Network og en GUI ">EventDrivenShare</a>(); <span class="comment">//initializes events til at dele data med GUI klassen</span></div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;            <span class="comment">//initializere variabler krævet for at gøre netværket - her under tråden</span></div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a> = <span class="keyword">new</span> <a class="code" href="class_client_1_1_network.html" title="Håndtere en forbinelse til en server. ">Network</a>(PushToGUI, <span class="keyword">this</span>);</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;            <span class="comment">/* Initializere den grafiske bruger-grænseflade - </span></div>
<div class="line"><a name="l00950"></a><span class="lineno">  950</span>&#160;<span class="comment">             * og klassen der, når et event er raised af PushToGUI, skal kalde BeginInvoke</span></div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;<span class="comment">             * (BeginInvoke sætter kaldet i kø, så en operation ikke bliver interupttet uforventet) på GUI-tråden </span></div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;<span class="comment">            */</span></div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;            <a class="code" href="class_client_1_1_gui_input_handler.html" title="Klasse der håndtere events kald til GUIen ">GuiInputHandler</a> GuiEventListener = <span class="keyword">new</span> <a class="code" href="class_client_1_1_gui_input_handler.html" title="Klasse der håndtere events kald til GUIen ">GuiInputHandler</a>(<span class="keyword">this</span>);</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;            <span class="comment">//Tilføjer event-listeners</span></div>
<div class="line"><a name="l00956"></a><span class="lineno">  956</span>&#160;            PushToNetwork.<a class="code" href="class_client_1_1_event_driven_share.html#afb2de1fcba2a0d8ada03c3941eddac0e" title="Event der reagere på ændring af propertien Encapsulation ">DataToSendChange</a> += <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#aa926c815701cd6d5e26345b5b17f0449" title="Reagere på et event. Sender data til forbundne server. ">clientSend</a>;</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;            PushToGUI.<a class="code" href="class_client_1_1_event_driven_share.html#a491461af76c567018603b7d1769494db" title="Event der reagere på ændring af propertien ChatMessage ">ChatMessageChange</a> += GuiEventListener.<a class="code" href="class_client_1_1_gui_input_handler.html#a19a8f19df5c110378b153f287cd9a3eb" title="Håndtere eventet ChatMessageChange ">PushChatMessage</a>;</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;            PushToGUI.<a class="code" href="class_client_1_1_event_driven_share.html#a72511454b681655976d8891ab37605cf" title="Event der reagere på ændring af propertien Project ">ProjectChange</a> += GuiEventListener.<a class="code" href="class_client_1_1_gui_input_handler.html#a1d7daee44fc0c991b345f76169a0c8b8" title="Håndtere eventet ProjectChange ">PushProjectData</a>;</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a> = PushToNetwork;</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;        }</div>
<div class="line"><a name="l00967"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aed093757c24932c3fab852a633d9a0f0">  967</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aed093757c24932c3fab852a633d9a0f0" title="Gør GUI&#39;en klar til at logge ind. ">PrepareUIForLogin</a>()</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;        {</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a78b64e0fc1432fdf4ed3d4515c62170d" title="Metode til at aktivere knapperne der kan bruges i GUI&#39;en ">EnableButtonsOnLogin</a>();</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a52fe517496368d9e9d56f74dd52108d9" title="Metode der sætter &quot;ConnectMenu&quot;&#39;en til &quot;logged in&quot; tilstand. ">ConnectMenuLoggedIn</a>();</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedIndex &gt;= 0)</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;            {</div>
<div class="line"><a name="l00973"></a><span class="lineno">  973</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aa1c22adf348b0dcbd2ad4e019533bd5e">TaskList</a>.DataContext = <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a1e569adeb53d43bb9cf2ce92fb017e66" title="Laver en ObservableCollection med indholdet fra TaskList og returnerer den. ">GetObservableTaskList</a>(<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>);</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;            }</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;        }</div>
<div class="line"><a name="l00982"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ab0296e21d7b927fae79bfe6108c42ba9">  982</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ab0296e21d7b927fae79bfe6108c42ba9" title="Gør GUI&#39;en klar til at logge ud. ">PrepareUIForLogout</a>()</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;        {</div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a68308706614be0fbbbe2e3af5e3cd4c8" title="Metode til at deaktivere knapperne der kan bruges i GUI&#39;en ">DisableButtonsOnLogout</a>();</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a4ceba454814fa7cc7f2ccd613eff57f2" title="Metode der sætter &quot;ConnectMenu&quot;&#39;en til en &quot;logged out&quot; tilstand. ">ConnectMenuLoggedOut</a>();</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a6d7e203e6b5fb128a6c157d84592f33c" title="Metode til at nulstille hele GUI&#39;en ">ClearUI</a>();</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;        }</div>
<div class="line"><a name="l00991"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a78b64e0fc1432fdf4ed3d4515c62170d">  991</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a78b64e0fc1432fdf4ed3d4515c62170d" title="Metode til at aktivere knapperne der kan bruges i GUI&#39;en ">EnableButtonsOnLogin</a>()</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;        {</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ac571d5579cd5de52fa16baeebc9d2241">MainMenuStackPanel</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a4ba806333010b72f7342fd90f9e1a508">RightGridInMotherGrid</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a86b8fa41a125ec268060aa2a8e6fc0d6">MiddleGridInMotherGrid</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;        }</div>
<div class="line"><a name="l01000"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a68308706614be0fbbbe2e3af5e3cd4c8"> 1000</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a68308706614be0fbbbe2e3af5e3cd4c8" title="Metode til at deaktivere knapperne der kan bruges i GUI&#39;en ">DisableButtonsOnLogout</a>()</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;        {</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ac571d5579cd5de52fa16baeebc9d2241">MainMenuStackPanel</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a4ba806333010b72f7342fd90f9e1a508">RightGridInMotherGrid</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a86b8fa41a125ec268060aa2a8e6fc0d6">MiddleGridInMotherGrid</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;        }</div>
<div class="line"><a name="l01009"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a6d7e203e6b5fb128a6c157d84592f33c"> 1009</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a6d7e203e6b5fb128a6c157d84592f33c" title="Metode til at nulstille hele GUI&#39;en ">ClearUI</a>()</div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;        {</div>
<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9b3b6d5f31226abb5cf656709c18dc53">ChatTextBox</a>.Clear();</div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aa1c22adf348b0dcbd2ad4e019533bd5e">TaskList</a>.DataContext = null;</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedIndex = 0;</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a86c1f976e8bef9fb4f238f094729cddd">ProjectInfoLabel</a>.Content = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;        }</div>
<div class="line"><a name="l01019"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a52fe517496368d9e9d56f74dd52108d9"> 1019</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a52fe517496368d9e9d56f74dd52108d9" title="Metode der sætter &quot;ConnectMenu&quot;&#39;en til &quot;logged in&quot; tilstand. ">ConnectMenuLoggedIn</a>()</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;        {</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a3e31aef59ff26fc1067cf63435d09b04">DisconnectButton</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a06df262bc40c1aa08646d7c5ff89dc11">ServerIPTextBox</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ac0cfef105a88c4e650e1b59739fbe508">ServerPortTextBox</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a030464be1aca32fbc81b6694a0329b7c">UsernameTextBox</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;        }</div>
<div class="line"><a name="l01031"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a4ceba454814fa7cc7f2ccd613eff57f2"> 1031</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a4ceba454814fa7cc7f2ccd613eff57f2" title="Metode der sætter &quot;ConnectMenu&quot;&#39;en til en &quot;logged out&quot; tilstand. ">ConnectMenuLoggedOut</a>()</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;        {</div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a3e31aef59ff26fc1067cf63435d09b04">DisconnectButton</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a73f75db0a5d10b48cf667e04994726dd">ConnectButton</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a06df262bc40c1aa08646d7c5ff89dc11">ServerIPTextBox</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ac0cfef105a88c4e650e1b59739fbe508">ServerPortTextBox</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a030464be1aca32fbc81b6694a0329b7c">UsernameTextBox</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ad7c9bfbc2efe42a4a59a5acd4b978f2a">PasswordPasswordBox</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;        }</div>
<div class="line"><a name="l01049"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab"> 1049</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a38c5d394950b377375dfd5d119f779ab" title="En metode der kan anvendes til at instatiere en tekstboks når den mister fokus. ">InitializeTextBoxOnLostFocus</a>(TextBox textBox, <span class="keywordtype">string</span> defaultText)</div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;        {</div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;            <span class="keywordflow">if</span> (<span class="keywordtype">string</span>.IsNullOrWhiteSpace(textBox.Text))</div>
<div class="line"><a name="l01052"></a><span class="lineno"> 1052</span>&#160;                textBox.Text = defaultText;</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;        }</div>
<div class="line"><a name="l01064"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735"> 1064</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#ad58172aed71307868601a925aa22c735" title="En metode der kan anvendes til at instantiere en tekstboks når den får fokus. ">InitializeTextBoxOnGotFocus</a>(TextBox textBox, <span class="keywordtype">string</span> defaultText, Button defaultButton)</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;        {</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;            <span class="keywordflow">if</span> (textBox.Text == defaultText || <span class="keywordtype">string</span>.IsNullOrWhiteSpace(textBox.Text))</div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;                textBox.Clear();</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;            defaultButton.IsDefault = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;        }</div>
<div class="line"><a name="l01073"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462"> 1073</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>()</div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;        {</div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.ItemsSource = <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a69e487c230d9420e2fb7e26e5d29cd85" title="Laver en ObservableCollection med indholdet fra _database og returnerer den. ">GetObservableProjects</a>();</div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9e1458e7fdc5785157a47a5a97e1d202" title="Metode der Opdaterer projekt-info&#39;en for det valgte projekt. ">RefreshProjectLabelInfo</a>();</div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;        }</div>
<div class="line"><a name="l01081"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#af6d6bb862a48c481f2e03b3e2413c2ad"> 1081</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#af6d6bb862a48c481f2e03b3e2413c2ad" title="Metode der Opdaterer tasklisten for det valgte projekt. ">RefreshTaskList</a>()</div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;        {</div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;            <span class="keywordflow">if</span> ((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>) != null)</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aa1c22adf348b0dcbd2ad4e019533bd5e">TaskList</a>.DataContext = <a class="code" href="class_client_1_1_main_window.html#a3eca94f5e077368ad2fe437ca49b3ff1" title="ProjectDatabasen &quot;instantieres&quot; vha. ProjectCollection klassen. ">ProjectDB</a>.<a class="code" href="class_s_w2_a311___lib_1_1_project_collection.html#a1e569adeb53d43bb9cf2ce92fb017e66" title="Laver en ObservableCollection med indholdet fra TaskList og returnerer den. ">GetObservableTaskList</a>(<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as ProjectData);</div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;        }</div>
<div class="line"><a name="l01089"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a9e1458e7fdc5785157a47a5a97e1d202"> 1089</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a9e1458e7fdc5785157a47a5a97e1d202" title="Metode der Opdaterer projekt-info&#39;en for det valgte projekt. ">RefreshProjectLabelInfo</a>()</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;        {</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;            <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a> pd = <a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>;</div>
<div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>&#160;            <span class="keywordflow">if</span> (pd != null)</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;            {</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;                <span class="keywordtype">string</span> projectStartDate = <span class="stringliteral">&quot;Project start date:\n&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>.Month + <span class="stringliteral">&quot;/&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>.Day + <span class="stringliteral">&quot;/&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#acdd115afebdfa5ff6b23ccd36ba0dd9c">ProjectStart</a>.Year;</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;                <span class="keywordtype">string</span> projectEndDate = <span class="stringliteral">&quot;Project end date:\n&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>.Month + <span class="stringliteral">&quot;/&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>.Day + <span class="stringliteral">&quot;/&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a268b9c6ad656a4eb5d0643a955727520">ProjectEnd</a>.Year;</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;                <span class="keywordtype">string</span> projectAdmin = <span class="stringliteral">&quot;Admin for this project is:\n&quot;</span> + <span class="stringliteral">&quot;\&quot;&quot;</span> + pd.<a class="code" href="class_s_w2_a311___lib_1_1_project_data.html#a699f323ee86441e0afabb4cc90665916">AssignedAdmin</a> + <span class="stringliteral">&quot;\&quot;&quot;</span>;</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;                <span class="keywordtype">string</span> newLine = <span class="stringliteral">&quot;\n&quot;</span>;</div>
<div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a86c1f976e8bef9fb4f238f094729cddd">ProjectInfoLabel</a>.Content = projectStartDate + newLine + projectEndDate + newLine + projectAdmin;</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;            }</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a86c1f976e8bef9fb4f238f094729cddd">ProjectInfoLabel</a>.Content = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;        }</div>
<div class="line"><a name="l01109"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a18d7852df5c0ddafffca86bbfb06fc01"> 1109</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a18d7852df5c0ddafffca86bbfb06fc01" title="Metode der Opdaterer Ganttcharten. ">RefreshGantt</a>()</div>
<div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>&#160;        {</div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aaef7af8642dd41c03590c126e4281daf">TaskCanvas</a>.Children.Clear();</div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;            <a class="code" href="class_client_1_1_gantt_chart.html" title="Klassen som håndterer vores GanttChart, og bestemmer størrelsen på de enkelte elementer. ">GanttChart</a>.<a class="code" href="class_client_1_1_gantt_chart.html#ad60911289c307ebe03a89a83f2bcec57" title="Højden på et element ">OneElementInPxHeight</a> = 30;</div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;            <span class="keywordflow">if</span> ((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as <a class="code" href="class_s_w2_a311___lib_1_1_project_data.html" title="Projekt-strukturen, der laver projekt elementer. ">ProjectData</a>) != null)</div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;            {</div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a873c97f8e849573d8d0f5404ee084500" title="Sætter størrelsen på det Canvas som Ganttcharten genereres i. ">SetTaskCanvasSize</a>((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as ProjectData));</div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a8a02f17d2376e1a096eba03831fc7adf" title="Metode der sørger for at &quot;tegne&quot; to bjælker i toppen af Ganttcharten med hhv. måneder og dato ...">DrawDateLine</a>((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as ProjectData).ProjectStart, ((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as ProjectData).ProjectEnd));</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#acc5b98d1317daf5039c9a6702727fdde" title="Metode til at tegne opgaver ind i Ganttcharten ">DrawGanttTaskBody</a>((<a class="code" href="class_client_1_1_main_window.html#a582a43f5fb4c605a6717b21fb3590887">ProjectComboBox</a>.SelectedItem as ProjectData));</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;            }</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;        }</div>
<div class="line"><a name="l01127"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7941f2beabfcdd44fd563f33b40eb50f"> 1127</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a7941f2beabfcdd44fd563f33b40eb50f" title="Metode der gennemtvinger en opdatering af hele GUI&#39;en. ">ForceGUIRefresh</a>()</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;        {</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a455df56bf690294a3abc578f838cd462" title="Metode der Opdaterer den ComboBox hvor projekterne er listet. ">RefreshProjectComboBox</a>();</div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a9e1458e7fdc5785157a47a5a97e1d202" title="Metode der Opdaterer projekt-info&#39;en for det valgte projekt. ">RefreshProjectLabelInfo</a>();</div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#af6d6bb862a48c481f2e03b3e2413c2ad" title="Metode der Opdaterer tasklisten for det valgte projekt. ">RefreshTaskList</a>();</div>
<div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a18d7852df5c0ddafffca86bbfb06fc01" title="Metode der Opdaterer Ganttcharten. ">RefreshGantt</a>();</div>
<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;        }</div>
<div class="line"><a name="l01141"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#aa5ae3d6357a04e7b7784260ca5bfa3d8"> 1141</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#aa5ae3d6357a04e7b7784260ca5bfa3d8" title="Viser/Skjuler vindet til at oprette opgaver. ">HideOrShowNotifCreateTask</a>()</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;        {</div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="class_client_1_1_main_window.html#a135082f9aabcc7a8e80b2230d43d47d0">NotifCreateTask</a>.IsEnabled)</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;            {</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a135082f9aabcc7a8e80b2230d43d47d0">NotifCreateTask</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aaab0ceffe3883830423777fc7708d9d8" title="Nulstiller &quot;tilføj opgave&quot;-vinduet til oprindelig status ">NotifCreateTaskReset</a>();</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a135082f9aabcc7a8e80b2230d43d47d0">NotifCreateTask</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a242c8bbe05ce000894743ebc5276be0f">NotifCreateTaskCancelButton</a>.IsCancel = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a7fa03785a7d371343f48846d0d647660">NotifCreateTaskTaskNameTextBox</a>.Focus();</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;            }</div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;            {</div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a135082f9aabcc7a8e80b2230d43d47d0">NotifCreateTask</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a135082f9aabcc7a8e80b2230d43d47d0">NotifCreateTask</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;            }</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;        }</div>
<div class="line"><a name="l01164"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a1bb3941cd9bc7235a135e2081177135c"> 1164</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a1bb3941cd9bc7235a135e2081177135c" title="Viser/Skjuler vindet til at oprette projekter. ">HideOrShowNotifCreateProject</a>()</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;        {</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#ab5d8af8a2ceb4d8c83c68d35de9e52a2">NotifCreateProject</a>.IsEnabled)</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;            {</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab5d8af8a2ceb4d8c83c68d35de9e52a2">NotifCreateProject</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab5d8af8a2ceb4d8c83c68d35de9e52a2">NotifCreateProject</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;            }</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;            {</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab5d8af8a2ceb4d8c83c68d35de9e52a2">NotifCreateProject</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ac7bb29988fbee33e3749d4cb78c1284e" title="Nulstiller &quot;tilføj projekt&quot;-vinduet til oprindelig status ">NotifCreateProjectReset</a>();</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab5d8af8a2ceb4d8c83c68d35de9e52a2">NotifCreateProject</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a7cf094e0b22e054f7d034d8407955c47">NotifCreateProjectCancelButton</a>.IsCancel = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;            }</div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;</div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;        }</div>
<div class="line"><a name="l01187"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a0f62bd4d1615bb857e8731addbce5fd7"> 1187</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a0f62bd4d1615bb857e8731addbce5fd7" title="Viser/Skjuler vindet til at oprette brugere. ">HideOrShowNotifCreateUser</a>()</div>
<div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>&#160;        {</div>
<div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#aec373b7eb3d273de6c3cc6300482f58e">NotifCreateUser</a>.IsEnabled)</div>
<div class="line"><a name="l01190"></a><span class="lineno"> 1190</span>&#160;            {</div>
<div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aec373b7eb3d273de6c3cc6300482f58e">NotifCreateUser</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aec373b7eb3d273de6c3cc6300482f58e">NotifCreateUser</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01193"></a><span class="lineno"> 1193</span>&#160;            }</div>
<div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>&#160;            {</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aec373b7eb3d273de6c3cc6300482f58e">NotifCreateUser</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a2f23077e4e481ab4ea4a71afd025deee" title="Nulstiller &quot;tilføj bruger&quot;-vinduet til oprindelig status ">NotifCreateUserReset</a>();</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aec373b7eb3d273de6c3cc6300482f58e">NotifCreateUser</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a7126b2c2e70fa13fca993e0d806d1bcb">NotifCreateUserCancelButton</a>.IsCancel = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;            }</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;        }</div>
<div class="line"><a name="l01210"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#af8863f8be2fd44a376d382618a1c37f3"> 1210</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#af8863f8be2fd44a376d382618a1c37f3" title="Viser/Skjuler vindet med Ganttcharten. ">HideOrShowGantt</a>()</div>
<div class="line"><a name="l01211"></a><span class="lineno"> 1211</span>&#160;        {</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.IsEnabled)</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;            {</div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab7e5fa19fabf862deb5272ea49daf9ce">GanttCloseButton</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>&#160;            }</div>
<div class="line"><a name="l01218"></a><span class="lineno"> 1218</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>&#160;            {</div>
<div class="line"><a name="l01220"></a><span class="lineno"> 1220</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab7e5fa19fabf862deb5272ea49daf9ce">GanttCloseButton</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ab7e5fa19fabf862deb5272ea49daf9ce">GanttCloseButton</a>.IsCancel = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a6bd0d243036784726c1fae2e72126043">Gantt</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a18d7852df5c0ddafffca86bbfb06fc01" title="Metode der Opdaterer Ganttcharten. ">RefreshGantt</a>();</div>
<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;            }</div>
<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;</div>
<div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>&#160;        }</div>
<div class="line"><a name="l01235"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a073ef435780c67f96c696ad8995f7a7a"> 1235</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a073ef435780c67f96c696ad8995f7a7a" title="Viser/Skjuler vindet til at skifte admin for et projekt ">HideOrShowNotifChangeAdmin</a>()</div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;        {</div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#af00bf1534b6f3f62e4cb370797d69478">NotifChangeAdmin</a>.IsEnabled)</div>
<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;            {</div>
<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af00bf1534b6f3f62e4cb370797d69478">NotifChangeAdmin</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af00bf1534b6f3f62e4cb370797d69478">NotifChangeAdmin</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;            }</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;            {</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af00bf1534b6f3f62e4cb370797d69478">NotifChangeAdmin</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#af00bf1534b6f3f62e4cb370797d69478">NotifChangeAdmin</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01246"></a><span class="lineno"> 1246</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ac4196d3cef2268ca8cba51c850263a2c">NotifChangeAdminAdd</a>.IsDefault = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#ad1a01663bd5aba3cc915a5775251ce61">NotifChangeAdminCancel</a>.IsCancel = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>&#160;            }</div>
<div class="line"><a name="l01249"></a><span class="lineno"> 1249</span>&#160;        }</div>
<div class="line"><a name="l01255"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a42c03b81820598e79ca78c2928eb1670"> 1255</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a42c03b81820598e79ca78c2928eb1670" title="Event der køres når BackgroundWindow (hovedvinduet) ændrer størrelse. ">BackgroundWindow_SizeChanged</a>(<span class="keywordtype">object</span> sender, SizeChangedEventArgs e)</div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;        {</div>
<div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a7941f2beabfcdd44fd563f33b40eb50f" title="Metode der gennemtvinger en opdatering af hele GUI&#39;en. ">ForceGUIRefresh</a>();</div>
<div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>&#160;        }</div>
<div class="line"><a name="l01267"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a7bfcfc62a6d74bfec311cefb262bedf2"> 1267</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a7bfcfc62a6d74bfec311cefb262bedf2" title="Event der køres når BackgroundWindow (hovedvinduet) lukkes. ">BackgroundWindow_Closing</a>(<span class="keywordtype">object</span> sender, System.ComponentModel.CancelEventArgs e)</div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;        {</div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a> != null)</div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#a6784c5862fd1e797567e3d69e0f7f287" title="Diconnecter fra server ">Disconnect</a>();</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;        }</div>
<div class="line"><a name="l01280"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a1444a91f86d190012f35e9d476e076f2"> 1280</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a1444a91f86d190012f35e9d476e076f2" title="Event der køres når der trykkes F1,F2, F3 eller F5 i programmet. ">BackgroundWindow_KeyDown</a>(<span class="keywordtype">object</span> sender, KeyEventArgs e)</div>
<div class="line"><a name="l01281"></a><span class="lineno"> 1281</span>&#160;        {</div>
<div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>&#160;            <span class="keywordflow">switch</span> (e.Key)</div>
<div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>&#160;            {</div>
<div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>&#160;                <span class="keywordflow">case</span> Key.F1:</div>
<div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled)</div>
<div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>&#160;                    {</div>
<div class="line"><a name="l01287"></a><span class="lineno"> 1287</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>&#160;                    }</div>
<div class="line"><a name="l01290"></a><span class="lineno"> 1290</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>&#160;                    {</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#ad925b482beceafdc2ce75a6ddff719b3">HelpBrowser</a>.Navigate(<span class="keyword">new</span> Uri(<span class="stringliteral">&quot;http://spriz.zapto.org/p2/html/&quot;</span>));</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;                    }</div>
<div class="line"><a name="l01296"></a><span class="lineno"> 1296</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;                <span class="keywordflow">case</span> Key.F2:</div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled)</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;                    {</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;                    }</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;                    {</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#ad925b482beceafdc2ce75a6ddff719b3">HelpBrowser</a>.Navigate(<span class="keyword">new</span> Uri(<span class="stringliteral">&quot;http://spriz.zapto.org/p2/client/publish.htm&quot;</span>));</div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;                    }</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;                <span class="keywordflow">case</span> Key.F3:</div>
<div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>&#160;                    <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled)</div>
<div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>&#160;                    {</div>
<div class="line"><a name="l01313"></a><span class="lineno"> 1313</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Collapsed;</div>
<div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>&#160;                    }</div>
<div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>&#160;                    <span class="keywordflow">else</span></div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;                    {</div>
<div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.IsEnabled = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#a32749637248bb49a249fc41a7a2e6d8f">HelpGrid</a>.Visibility = System.Windows.Visibility.Visible;</div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;                        <a class="code" href="class_client_1_1_main_window.html#ad925b482beceafdc2ce75a6ddff719b3">HelpBrowser</a>.Navigate(<span class="keyword">new</span> Uri(<span class="stringliteral">&quot;http://spriz.zapto.org/p2/server/publish.htm&quot;</span>));</div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;                    }</div>
<div class="line"><a name="l01322"></a><span class="lineno"> 1322</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;                <span class="keywordflow">case</span> Key.F5:</div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a7941f2beabfcdd44fd563f33b40eb50f" title="Metode der gennemtvinger en opdatering af hele GUI&#39;en. ">ForceGUIRefresh</a>();</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;                    MessageBox.Show(<span class="stringliteral">&quot;Graphical user interface has been updated&quot;</span>, <span class="stringliteral">&quot;GanttMaker&quot;</span>, MessageBoxButton.OK, MessageBoxImage.Information);</div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;                    <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;            }</div>
<div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>&#160;        }</div>
<div class="line"><a name="l01329"></a><span class="lineno"> 1329</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l01330"></a><span class="lineno"> 1330</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l01331"></a><span class="lineno"> 1331</span>&#160;<span class="preprocessor">        #region Network</span></div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>&#160;</div>
<div class="line"><a name="l01334"></a><span class="lineno"> 1334</span>&#160;</div>
<div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>&#160;</div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;</div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;</div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;</div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;</div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;</div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;</div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;</div>
<div class="line"><a name="l01344"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a53a6e0cd76095f8b5a88cb8bc9972d22"> 1344</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a53a6e0cd76095f8b5a88cb8bc9972d22" title="Metode til at oprette forbindelse til en server. ">ConnectToServer</a>(<span class="keywordtype">string</span> ipIn, <span class="keywordtype">string</span> portIn, <span class="keywordtype">string</span> username, <span class="keywordtype">string</span> password)</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;        {</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#aef71399868920f25e2d0406ebc2e794d" title="Metode der køres når der skal oprettes forbindelse til en server. ">Init</a>();</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;            <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a> tempUser = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a>(username, password);</div>
<div class="line"><a name="l01349"></a><span class="lineno"> 1349</span>&#160;            <span class="keywordtype">int</span> port;</div>
<div class="line"><a name="l01350"></a><span class="lineno"> 1350</span>&#160;            IPAddress ipAdress;</div>
<div class="line"><a name="l01351"></a><span class="lineno"> 1351</span>&#160;</div>
<div class="line"><a name="l01352"></a><span class="lineno"> 1352</span>&#160;            <span class="keywordflow">if</span> (<span class="keywordtype">int</span>.TryParse(portIn, out port) &amp;&amp; IPAddress.TryParse(ipIn, out ipAdress))</div>
<div class="line"><a name="l01353"></a><span class="lineno"> 1353</span>&#160;            {</div>
<div class="line"><a name="l01354"></a><span class="lineno"> 1354</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#a39622d8a73f1fe9b727633b30355efd1" title="Prøver og forbinde til server med det specificeret information ">TryConnect</a>(ipAdress, port, tempUser))</div>
<div class="line"><a name="l01355"></a><span class="lineno"> 1355</span>&#160;                {</div>
<div class="line"><a name="l01356"></a><span class="lineno"> 1356</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a> = <span class="keyword">new</span> Thread(<a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#a4b72acdb7fab91cabe2f3efed0ccef21" title="Start punkt for tråd. Modtager data fra den forbundne forbindelse. Tråden stopper hvis der sker en IO...">ClientRecv</a>);</div>
<div class="line"><a name="l01357"></a><span class="lineno"> 1357</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>.IsBackground = <span class="keyword">true</span>;</div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>.Start();</div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#adbb1a199c276b66827c718bca0b6e7e7" title="BAAAK !? ">EDS</a>.<a class="code" href="class_client_1_1_event_driven_share.html#aad5820eb43c7ca712391b97fc1a930c3">Encapsulation</a> = <span class="keyword">new</span> <a class="code" href="class_s_w2_a311___lib_1_1_encapsulation_class.html" title="EncapsulationClass bruges til at indkapsle de objekter vi sender over netværket så vi nemt kan deseri...">EncapsulationClass</a>(tempUser);</div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;                }</div>
<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;                <span class="keywordflow">else</span></div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;                    <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentNullException(<span class="stringliteral">&quot;Failed to connect to server, make sure the information is correct!&quot;</span>);</div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;            }</div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;                <span class="keywordflow">throw</span> <span class="keyword">new</span> ArgumentOutOfRangeException(<span class="stringliteral">&quot;Server IP &amp; Port must be a valid value!&quot;</span>);</div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;        }</div>
<div class="line"><a name="l01374"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#af0dfd0f961865442936b82b56cd08d94"> 1374</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#af0dfd0f961865442936b82b56cd08d94" title="Metode til at afbryde forbindelsen fra serveren. ">DisconnectFromServer</a>()</div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;        {</div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#ab0296e21d7b927fae79bfe6108c42ba9" title="Gør GUI&#39;en klar til at logge ud. ">PrepareUIForLogout</a>();</div>
<div class="line"><a name="l01377"></a><span class="lineno"> 1377</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a> = null;</div>
<div class="line"><a name="l01378"></a><span class="lineno"> 1378</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>.Abort();</div>
<div class="line"><a name="l01379"></a><span class="lineno"> 1379</span>&#160;            <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#a6784c5862fd1e797567e3d69e0f7f287" title="Diconnecter fra server ">Disconnect</a>();</div>
<div class="line"><a name="l01380"></a><span class="lineno"> 1380</span>&#160;            MessageBox.Show(<span class="stringliteral">&quot;Disconnected from server&quot;</span>);</div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;        }</div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;        <span class="keyword">public</span> delegate <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a73c581f05ec7ae398805bb2772a12547" title="BAAAK? ">ConnectStatus</a>(<span class="keywordtype">object</span> Message); <span class="comment">// Hva faen?</span></div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;</div>
<div class="line"><a name="l01388"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a02ea20532e71231561257a39ec6bcc77"> 1388</a></span>&#160;        <span class="keyword">private</span> <span class="keywordtype">void</span> <a class="code" href="class_client_1_1_main_window.html#a02ea20532e71231561257a39ec6bcc77">ConnectedToServer</a>(<span class="keywordtype">object</span> userIn)</div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;        {</div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;            <a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a> tempUser = (<a class="code" href="class_s_w2_a311___lib_1_1_user.html" title="User-strukturen, der laver bruger objekter. ">User</a>)userIn;</div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;            <span class="keywordflow">if</span> (tempUser.<a class="code" href="class_s_w2_a311___lib_1_1_user.html#a16146f3923ba2aec5aae9605c9560ba7">isValid</a>)</div>
<div class="line"><a name="l01392"></a><span class="lineno"> 1392</span>&#160;            {</div>
<div class="line"><a name="l01393"></a><span class="lineno"> 1393</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a7841fdcfe525439deaf789b9e802a467">currUser</a> = tempUser;</div>
<div class="line"><a name="l01394"></a><span class="lineno"> 1394</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#aed093757c24932c3fab852a633d9a0f0" title="Gør GUI&#39;en klar til at logge ind. ">PrepareUIForLogin</a>();</div>
<div class="line"><a name="l01395"></a><span class="lineno"> 1395</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Connected!&quot;</span>);</div>
<div class="line"><a name="l01396"></a><span class="lineno"> 1396</span>&#160;            }</div>
<div class="line"><a name="l01397"></a><span class="lineno"> 1397</span>&#160;            <span class="keywordflow">else</span></div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;            {</div>
<div class="line"><a name="l01399"></a><span class="lineno"> 1399</span>&#160;                MessageBox.Show(<span class="stringliteral">&quot;Failed to verify user&quot;</span>);</div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;                <a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>.Abort();</div>
<div class="line"><a name="l01401"></a><span class="lineno"> 1401</span>&#160;                <span class="keywordflow">if</span> (<a class="code" href="class_client_1_1_main_window.html#a754e0bdbe3cef4f8df703c2b840e7b38" title="Netværkstråden. ">NetThread</a>.ThreadState.Equals(ThreadState.AbortRequested))</div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;                    <a class="code" href="class_client_1_1_main_window.html#a02631103e04115b7261d77258a1634d0" title="Netværksstream&#39;et. ">StreamHandler</a>.<a class="code" href="class_client_1_1_network.html#a6784c5862fd1e797567e3d69e0f7f287" title="Diconnecter fra server ">Disconnect</a>();</div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;            }</div>
<div class="line"><a name="l01404"></a><span class="lineno"> 1404</span>&#160;            Mouse.OverrideCursor = Cursors.Arrow;</div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;        }</div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;<span class="preprocessor">        #region Misc</span></div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;</div>
<div class="line"><a name="l01411"></a><span class="lineno"> 1411</span>&#160;</div>
<div class="line"><a name="l01412"></a><span class="lineno"> 1412</span>&#160;</div>
<div class="line"><a name="l01413"></a><span class="lineno"> 1413</span>&#160;</div>
<div class="line"><a name="l01414"></a><span class="lineno"> 1414</span>&#160;</div>
<div class="line"><a name="l01415"></a><span class="lineno"> 1415</span>&#160;</div>
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;</div>
<div class="line"><a name="l01417"></a><span class="lineno"> 1417</span>&#160;</div>
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;</div>
<div class="line"><a name="l01419"></a><span class="lineno"> 1419</span>&#160;</div>
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;</div>
<div class="line"><a name="l01421"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8"> 1421</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_client_1_1_main_window.html#a60cf2f270ea42cb74ae0c0ff62f8ddd8" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenTaskAndTask</a>(DateTime startTime, DateTime endTime)</div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;        {</div>
<div class="line"><a name="l01423"></a><span class="lineno"> 1423</span>&#160;            <span class="keywordtype">int</span> toReturn = Convert.ToInt32((endTime.Date - startTime.Date).TotalDays);</div>
<div class="line"><a name="l01424"></a><span class="lineno"> 1424</span>&#160;            <span class="keywordflow">if</span> (toReturn &gt; 0)</div>
<div class="line"><a name="l01425"></a><span class="lineno"> 1425</span>&#160;                <span class="keywordflow">return</span> toReturn + 1;</div>
<div class="line"><a name="l01426"></a><span class="lineno"> 1426</span>&#160;            <span class="keywordflow">return</span> 1;</div>
<div class="line"><a name="l01427"></a><span class="lineno"> 1427</span>&#160;        }</div>
<div class="line"><a name="l01439"></a><span class="lineno"><a class="code" href="class_client_1_1_main_window.html#acc89883ab37d36830c3a7fc23ad0169f"> 1439</a></span>&#160;        <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_client_1_1_main_window.html#acc89883ab37d36830c3a7fc23ad0169f" title="Sørger for at konvertere to DateTimes TimeSpan til et antal dage. ">DaysBetweenProjectAndTask</a>(DateTime startTime, DateTime endTime)</div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;        {</div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;            <span class="keywordflow">return</span> Convert.ToInt32((endTime.Date - startTime.Date).TotalDays);</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;        }</div>
<div class="line"><a name="l01443"></a><span class="lineno"> 1443</span>&#160;<span class="preprocessor">        #endregion</span></div>
<div class="line"><a name="l01444"></a><span class="lineno"> 1444</span>&#160;<span class="preprocessor"></span>    }</div>
<div class="line"><a name="l01445"></a><span class="lineno"> 1445</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_922c588100a187620fdc1533bc178f73.html">Client</a></li><li class="navelem"><a class="el" href="_client_2_main_window_8xaml_8cs.html">MainWindow.xaml.cs</a></li>
    <li class="footer">Generated on Fri May 17 2013 11:47:20 for P2 Project - GanttMaker by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.3.1 </li>
  </ul>
</div>
</body>
</html>
